<form method="post" action="<?php if( isset( $action ) ) echo $action ?>" >
	<div>
		<label>Search by lastname, firstname, or employee number:</label>
		<input type="text" name="search" value="<?php if( isset( $search ) ) echo $search ?>" />
	</div>
	<input type="submit" value="Search" />
</form>
<ul style="margin-top: 20px; margin-left: 40px;">
<?php foreach( $results as $result ) : ?>
	<li><?php echo ucwords( strtolower ( $result['lastname'] )) ?>, <?php echo ucwords( strtolower ( $result['firstname'] ) ) ?> 
	(<a href="/siteadmin/assign/<?php echo $orgName ?>/<?php echo $result['stud_no'] ?>/1">set as professor</a>)</li>
<?php endforeach; ?>
</ul>

<hr />
<?php if( count($admins) > 0 ) : ?>
Admin list:
<ul style="margin-top: 20px; margin-left: 40px;">
<?php foreach( $admins as $admin ) : ?>
	<li><?php echo ucwords( strtolower ( $admin['lastname'] )) ?>, <?php echo ucwords( strtolower ( $admin['firstname'] ) ) ?> 
	(<a href="/siteadmin/assign/<?php echo $orgName ?>/<?php echo $admin['stud_no'] ?>/0">unset as professor</a>)</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
No professor set yet.
<?php endif; ?>